#pragma once
#include <vector>

class Nod
{
public:
	//----setParent
	//setting nod that is used as parent of nod
	void addParent(Nod* const);
	//----addChild
	//is adding to vector of Children pointer of nod
	void addChild(Nod* const);
	//----Nod
	//sets length of nod
	bool Nod::hasChild() const;
	bool Nod::hasParent() const;
	void showFamily()const;
	void showValue()const;
	std::vector<Nod* const> & Nod::getChildren();
	std::vector<Nod* const> & Nod::getParents();
	int getValue() {return value;}
	Nod(int);
	~Nod(void);
private:
	int value;
	std::vector<Nod* const> Parents;
	std::vector<Nod* const> Children;
	int minStart, maxStart, minEnd, maxEnd;
};